CVE-2025-21660
ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked
Description
In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked When `ksmbd_vfs_kern_path_locked` met an error and it is not the last entry, it will exit without restoring changed path buffer. But later this buffer may be used as the filename for creation.
INFO
Published Date :
Jan. 21, 2025, 1:15 p.m.
Last Modified :
Nov. 3, 2025, 9:19 p.m.
Remotely Exploit :
No
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
CVSS Scores
| Score | Version | Severity | Vector | Exploitability Score | Impact Score | Source |
|---|---|---|---|---|---|---|
| CVSS 3.1 | MEDIUM | [email protected] |
Solution
- Update the Linux kernel to a fixed version.
- Review and apply the specific patch for ksmbd.
- Test the system after applying the kernel update.
Public PoC/Exploit Available at Github
CVE-2025-21660 has a 1 public
PoC/Exploit available at Github.
Go to the Public Exploits tab to see the list.
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2025-21660.
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2025-21660 is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2025-21660
weaknesses.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
None
Java Shell
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2025-21660 vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2025-21660 vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by af854a3a-2127-422b-91ae-364da2661108
Nov. 03, 2025
Action Type Old Value New Value Added Reference https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html -
Initial Analysis by [email protected]
Oct. 15, 2025
Action Type Old Value New Value Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Added CWE NVD-CWE-noinfo Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.10.13 up to (excluding) 6.11 *cpe:2.3:o:linux:linux_kernel:6.13:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.13:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.13:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.13:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:6.13:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.1.113 up to (excluding) 6.1.125 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.6.54 up to (excluding) 6.6.72 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.11.2 up to (excluding) 6.12.10 *cpe:2.3:o:linux:linux_kernel:6.13:rc6:*:*:*:*:*:* Added Reference Type kernel.org: https://git.kernel.org/stable/c/13e41c58c74baa71f34c0830eaa3c29d53a6e964 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/2ac538e40278a2c0c051cca81bcaafc547d61372 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/51669f4af5f7959565b48e55691ba92fabf5c587 Types: Patch Added Reference Type kernel.org: https://git.kernel.org/stable/c/65b31b9d992c0fb0685c51a0cf09993832734fc4 Types: Patch -
New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Jan. 21, 2025
Action Type Old Value New Value Added Description In the Linux kernel, the following vulnerability has been resolved: ksmbd: fix unexpectedly changed path in ksmbd_vfs_kern_path_locked When `ksmbd_vfs_kern_path_locked` met an error and it is not the last entry, it will exit without restoring changed path buffer. But later this buffer may be used as the filename for creation. Added Reference https://git.kernel.org/stable/c/13e41c58c74baa71f34c0830eaa3c29d53a6e964 Added Reference https://git.kernel.org/stable/c/2ac538e40278a2c0c051cca81bcaafc547d61372 Added Reference https://git.kernel.org/stable/c/51669f4af5f7959565b48e55691ba92fabf5c587 Added Reference https://git.kernel.org/stable/c/65b31b9d992c0fb0685c51a0cf09993832734fc4